from django.conf.urls import url

from . import views

urlpatterns = [
    # 拼接QQ登录url
    url(r'^oauth/qq/authorization/$', views.QQOauthURLView.as_view()),
    url(r'^oauth/qq/user/$',views.QQAuthUserView.as_view()),
    # 拼接微博登录url
    url(r'^oauth/sina/authorization/$', views.WeiboAuthURLLView.as_view()),
    url(r'^oauth/sina/user/$',views.WeiboOauthView.as_view()),

    # 获取图片验证码
    url(r'^image_codes/(?P<image_code_id>.+)/$', views.GetImageCodeView.as_view()),

]
